package com.guit.hrms.service;

import com.guit.hrms.po.department.Department;
import com.guit.hrms.po.utilsPO.PageBean;
import com.guit.hrms.vo.department.DepartmentVO;

import java.util.List;

public interface DepartmentService {
    Integer addDepartment(Department department);

    Integer updateDepartment(Department department);

    DepartmentVO selectDepartment(Integer deptId);
    List<DepartmentVO> selectDepartments();

    Integer deleteDepartment(List<Integer> deptIds);

    /**
     * 查询部门下各个岗位的员工
     * @param page
     * @param pageSize
     * @param deptId
     * @param positionId
     * @return
     */
    PageBean getDeptPerson(Integer page, Integer pageSize, Integer deptId,Integer deptType, Integer positionId);
}
